#import <Foundation/Foundation.h>
#import "Dog.h"
#import "Cat.h"

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    //Start TESTS
	//test animals
	Animal *animal = [[Animal alloc] initWithAge:8];
	NSLog(@"animal %u", [animal getAge]);
	[animal speak];
	Animal *animal1 = [[Animal alloc] init];
	NSLog(@"animal1 %u", [animal1 getAge]);
	[animal1 speak];
	
	//test dogs
	Dog *dog = [[Dog alloc] initWithAge:12];
	NSLog(@"dog %u", [dog getAge]);
	[dog speak];
	Dog *dog1 = [[Dog alloc] init];
	NSLog(@"dog1 %u", [dog1 getAge]);
	[dog1 speak];
	
	//test cats
	Cat *cat = [[Cat alloc] initWithAge:32];
	NSLog(@"cat %u", [cat getAge]);
	[cat speak];
	Cat *cat1 = [[Cat alloc] init];
	NSLog(@"cat1 %u", [cat1 getAge]);
	[cat1 speak];
	//End TESTS
	
    [pool drain];
    return 0;
}
